package com.tianqu.tis.core.webservice;

import java.io.IOException;

import javax.servlet.GenericServlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.xml.ws.Endpoint;

import com.tianqu.tms.core.util.Registry;
import com.tianqu.tms.core.util.TmsConstants;

public class CarsInformationWS  extends GenericServlet {

	private static final long serialVersionUID = 1L;

	@Override
    public void init(ServletConfig servletConfig) throws ServletException {
    	System.out.println("websercie服务启动.......................");
    	super.init(servletConfig);
    	CarsInformationService service = new CarsInformationServiceImp();
    	Endpoint.publish(Registry.getConfig(TmsConstants.WEBSERVICE_HOST_KEY)+"/"+"CarsInformationService",service);
    	System.out.println("websercie服务启动完成.......................");
    }
	@Override
	public void service(ServletRequest arg0, ServletResponse arg1)throws ServletException, IOException {

	}

		
	
}
